package com.xiepei.day01;

public class Computer {
    public void start(){
        System.out.println("开机");
    }

    public void usbUSB(USB usb){
        usb.open();
        usb.close();
        if(usb instanceof Mouse mouse){
            mouse.click();
        }
        if (usb instanceof KeyBoard keyBoard){
            keyBoard.input();
        }

    }
    public void stop(){
        System.out.println("关机");
    }
}
